<?php
class Denunciossiniestro_model extends CI_Model {
function __construct (){
$this->load->database();
parent::__construct();


}//fin function constructor

function selecCertificado($rut){
$sql="SELECT [SEGAN_CERTIFICADO] FROM [WIS].[dbo].[SEGAN_FILE]
      WHERE [SEGAN_RUT]=".$rut;
$query=$this->db->query($sql);
foreach ($query->result_array() as $row){
         $aux = $row['SEGAN_CERTIFICADO'];
         unset($row['SEGAN_CERTIFICADO']);
         $data[$aux]=$aux;
}

return $data;
}


}
  ?>